import { Inject } from '@midwayjs/core';
import { CoolController, BaseController } from '@cool-midway/core';
import { PayConfigEntity } from '../../entity/config';
import { PayConfigService } from '../../service/config';

/**
 * 支付配置
 */
@CoolController({
  api: ['add', 'delete', 'update', 'info', 'list', 'page'],
  entity: PayConfigEntity,
  service: PayConfigService,
  pageQueryOp: {
    keyWordLikeFields: ['a.name'],
    fieldEq: ['a.type', 'a.status'],
  },
})
export class AdminPayConfigController extends BaseController {
  @Inject()
  payConfigService: PayConfigService;
}
